match x:
    case Class('foo<caret>bar'):
        pass